﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Client
{
    public partial class ClientForm : Form
    {

        StreamWriter streamWriter;
        public ClientForm(StreamWriter sw)
        {
            streamWriter = sw;
            InitializeComponent();
                        
 
            
            
        }

        private void m_btnJoin_Click(object sender, EventArgs e)
        {
            streamWriter.WriteLine(m_txtName.Text);
            streamWriter.Flush();
            Close();
        }


       
    }
}
